package beer.xz.beer.device.data.api

import retrofit2.http.GET
import retrofit2.http.Query

interface ControllerSecretKeyApi {
    @GET("controller/key")
    suspend fun getSecretKey(@Query("code") code: String): ResultData<ControllerSecretKeyData>
}


//请求返回的数据
data class ControllerSecretKeyData(val code: String, val secretKey: String)